<?php /* Smarty version 2.6.26, created on 2014-02-20 11:58:12
         compiled from default/public/member_address.html */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="view/default/style/basic.css" />
<link type="text/css" rel="stylesheet" href="view/default/style/member.css" />
<script type="text/javascript" src="view/default/js/ajax.js"></script>
<script type="text/javascript" src="view/default/js/changeAddress.js"></script>
<script type="text/javascript" src="view/default/js/member.js"></script>
<title>在线商城会员中心</title>
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/public/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="sait">
    当前位置：<a href="./">首页</a> &gt; 注册会员
</div>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "default/public/member_sidebar.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div id="main">
    <h2>收货地址管理</h2>
    <table cellspacing="1">
        <tr><th>收货人</th><th>地址</th><th>电子邮件</th><th>邮政编码</th><th>手机号码</th><th>标志建筑</th><th>操作</th></tr>
        <?php $_from = $this->_tpl_vars['allAddress']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>    
        <tr><td><?php echo $this->_tpl_vars['value']->name; ?>
</td><td><?php echo $this->_tpl_vars['value']->address; ?>
</td><td><?php echo $this->_tpl_vars['value']->email; ?>
</td><td><?php echo $this->_tpl_vars['value']->zipcode; ?>
</td><td><?php echo $this->_tpl_vars['value']->phone; ?>
</td><td><?php echo $this->_tpl_vars['value']->building; ?>
</td><td>
        <?php if ($this->_tpl_vars['value']->selected == 1): ?>
        <span style="color:green">已首选</span>
        <?php else: ?>
        <a href="?a=member&m=selected&id=<?php echo $this->_tpl_vars['value']->id; ?>
">首选</a>
        <?php endif; ?> 
        | 修改 | <a href="?a=member&m=deleteAddress&id=<?php echo $this->_tpl_vars['value']->id; ?>
">删除</a></td></tr>
        <?php endforeach; endif; unset($_from); ?>
    </table>
    
    <p style="text-align:center;margin:5px 0"><a href="?a=cart&m=flow">[去结算中心]</a></p>
    
    <form action="" name="address" method="post">
        <dl>
            <dd class="address">
                            省 份:<select id="province" name="province"></select>
                            城 市:<select id="city" name="city"></select>
                            区 域:<select id="area" name="area"></select></dd>
            <dd>具体地址:<input type="text" name="address" class="text"></dd>                
            <dd>收 货 人:<input type="text" name="name" class="text" ></dd>
            <dd>电子邮件:<input type="text" name="email" class="text" ></dd>
            <dd>邮政编码:<input type="text" name="zipcode" class="text" ></dd>
            <dd>手机号码:<input type="text" name="phone" class="text" ></dd>
            <dd>标志建筑:<input type="text" name="building" class="text" ></dd>
            <dd><input type="submit" name="send" class="submit" value="" onclick="return checkAddAddress();" /></dd>
        </dl>
    </form>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'default/public/footer.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>